package org.spring.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient("user-module")
public interface UserClient {
    @GetMapping("user/query")
    UserVO queryUserById(@RequestParam("userId") Long userId);

    @GetMapping("user/pay")
    ResponseEntity<Void> pay(@RequestParam("userId") Long userId,
                             @RequestParam("money") Integer money);
}
